// home
import React, { Component } from 'react'
import { Route, NavLink, Switch } from 'react-router-dom'
import Son1 from './Homeson1'
import Son2 from './Homeson2'
import Message from './Message'
import './home.css'
export default class Home extends Component {
    render() {
        return (
            <div>
                <h3>我是Home!2222</h3>
                <Son1 />
                <Son2 />
                <NavLink to='/home/son1'>son1</NavLink>
                <br/>
                <NavLink to='/home/son2'>son2</NavLink>
                <br/>
                <NavLink to='/home/message'>message</NavLink>
                <div id="test">
                    <Switch>
                        <Route path='/home/son1' component={Son1} />
                        <Route path='/home/son2' component={Son2} />
                        <Route path='/home/message' component={Message} />
                    </Switch>
                </div>
            </div>
        )
    }
}